package com.goldcn.picture.dao;

import com.goldcn.picture.dto.QueryResultTagDto;
import com.goldcn.picture.model.PicSysTagsItem;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

@Component
public interface PicSysTagsItemMapper {
    int deleteByPrimaryKey(Long tagitemid);

    int insert(PicSysTagsItem record);

    int insertSelective(PicSysTagsItem record);

    PicSysTagsItem selectByPrimaryKey(Long tagitemid);

    int updateByPrimaryKeySelective(PicSysTagsItem record);

    int updateByPrimaryKey(PicSysTagsItem record);

    int deleteByTagID(Long tagid);

    List<String> selectByTagId(Long tagid);

    List<PicSysTagsItem> selectListByTagId(Long tagid);

    List<Map> selectListByPictureid(Long pictureid);

    List<PicSysTagsItem> selectListByPicTag(Long tagid,Long pictureid);

    List<PicSysTagsItem> selectListByPicid(Long pictureid);


}
